import request from '@/utils/request'

// 查询路段管理列表
export function listBasicInfoRoad(query) {
  return request({
    url: '/basicInfo/basicInfoRoad/list',
    method: 'get',
    params: query
  })
}

// 查询路段管理详细
export function getBasicInfoRoad(id) {
  return request({
    url: '/basicInfo/basicInfoRoad/' + id,
    method: 'get'
  })
}

// 新增路段管理
export function addBasicInfoRoad(data) {
  return request({
    url: '/basicInfo/basicInfoRoad',
    method: 'post',
    data: data
  })
}

// 修改路段管理
export function updateBasicInfoRoad(data) {
  return request({
    url: '/basicInfo/basicInfoRoad',
    method: 'put',
    data: data
  })
}

// 删除路段管理
export function delBasicInfoRoad(id) {
  return request({
    url: '/basicInfo/basicInfoRoad/' + id,
    method: 'delete'
  })
}
